package cn.felord.jacksons.entity;

import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;

/**
 * The enum Gender.
 *
 * @author n1
 * @since 2021 /7/14 13:55
 */
public enum Gender {
    /**
     * Female gender.
     */
    FEMALE("0","女"),
    /**
     * Male gender.
     */
    MALE("1","男"),
    /**
     * Unknown gender.
     */
    @JsonEnumDefaultValue
    UNKNOWN("-1","未知");

    private final String value;
    private final String description;

    Gender(String value, String description) {
        this.value = value;
        this.description = description;
    }

    public String getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }
}
